package com.feign.api.controller;

import com.feign.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MemberApiController  implements IMemberService{

    @Override
    @RequestMapping("/getMember")
    public User getMember(@RequestParam("name") String name) {
        User user = new User();
        user.setAge(11);
        user.setName(name);
        return user;
    }
}
